
#include "stdafx.h"
#include "HRKMaterial.h"

CHrkMaterial::CHrkMaterial()
{
	m_subMatTab.Resize(0);
	m_pBaseMat = NULL;
	m_bMultMat = false;
}

void CHrkMaterial::AddSubMat( IGameMaterial* pMaterial )
{
	m_subMatTab.Append(1,&pMaterial );
}

int CHrkMaterial::GetSubMatCount()
{
	return m_subMatTab.Count();
}

IGameMaterial* CHrkMaterial::GetSubMat( int index )
{
	return m_subMatTab[index];
}
void CHrkMaterial::SetMultMat(bool bMult)
{
	m_bMultMat = bMult;
}

bool CHrkMaterial::IsMultMat()
{
	 
	return m_bMultMat;
}

int CHrkMaterial::FindMatId()
{
	//return m_pMat->GetMaterialID(

	return 0;
}

void CHrkMaterial::SetBaseMat( IGameMaterial* pMat )
{
	m_pBaseMat = pMat;
}

IGameMaterial* CHrkMaterial::GetBaseMat()
{
	return m_pBaseMat;
}